const list = [1, 2, 3];
list.push(4);
console.log(list);
list.pop();
console.log(list);